{{extend layout}}

{{block title}}FLPM{{end}}
{{block project}}FLPM{{end}}
{{block _css}}
<style>
.topbar-inner {
  background-color:#668DB6;
  -webkit-box-shadow: 2px 2px 3px #ccc;
  -moz-box-shadow: 2px 2px 3px #ccc;
  box-shadow: 2px 2px 3px #ccc;
  background-repeat: repeat-x;
  background-image: -khtml-gradient(linear, left top, left bottom, from(#333333), to(#668DB6));
  background-image: -moz-linear-gradient(top, #333333, #668DB6);
  background-image: -ms-linear-gradient(top, #333333, #668DB6);
  background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #333333), color-stop(100%, #668DB6));
  background-image: -webkit-linear-gradient(top, #333333, #668DB6);
  background-image: -o-linear-gradient(top, #333333, #668DB6);
  background-image: linear-gradient(top, #333333, #668DB6);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#333333', endColorstr='#668DB6', GradientType=0);
}
.hero-unit, .hero-unit h1 {color:white;}
.hero-unit h1 {font-size:4em;}
.hero-unit{
    background: #049cd9 url(/static/grid-18px.png) top center;
    padding: 45px;
    -webkit-box-shadow: inset 0 10px 30px rgba(0,0,0,.3);
    -moz-box-shadow: inset 0 10px 30px rgba(0,0,0,.3);
}
.topbar div > ul .active > a, .nav .active > a {
  background-color: #668DB6;
}
.user_info {color:#bfbfbf;}
.user_info img {vertical-align:middle;}
</style>
{{end}}

{{block nav}}
<ul class="nav">
  <li class="active"><a href="/">首页</a></li>
  <li><a href="/events">事项管理</a></li>
  <li><a href="/charts">报表查询</a></li>
  <li><a href="/forum">论坛</a></li>
  <li><a href="/config">管理</a></li>
</ul>
{{end nav}}

{{block footer}}
    <p>{{<<settings.Portal.info}}</p>
{{end}}

{{block user_info}}
{{get_user_image = function('get_user_image')}}
<p class="pull-right user_info">
{{if hasattr(request, 'user') and request.user:}}
    欢迎！ {{=request.user.username}} <img src="{{=get_user_image(request.user, size=20)}}" align="top"/>| <img src="/static/message.gif" align="top"/><a href="/config/messages/list" target="_blank" id="">(<font color="red"><span id="messages_number"></span></font>)</a> | <a href="/static/help/index.html" target="_blank">帮助</a> | <a href="/logout">{{=_('Logout')}}</a> | <a href="/resign">更换用户</a>
{{else:}}
    尚未登录！ <a href="/login">登录</a>
</p>
{{pass}}
{{end}}